<script runat="template">
public string getModuleNameWithS()
{
	try
	{
		if(ProjectName=="")
		{
			return string.Empty;
		}
		else
		{		
			char[] splitter  = {'.'};
			string project = ProjectName;
			string [] arrayPath = project.Split(splitter);
			string moduleName = arrayPath[arrayPath.Length - 1];
			return moduleName;
		}
	}
	catch(Exception ex)
	{
		Response.WriteLine(ex.ToString());
		return string.Empty;
	}
}
public string getModuleName()
{
	try
	{
		if(ProjectName=="")
		{
			return string.Empty;
		}
		else
		{		
			char[] splitter  = {'.'};
			string project = ProjectName;
			string [] arrayPath = project.Split(splitter);
			string moduleName = arrayPath[arrayPath.Length - 1];
			if(moduleName[moduleName.Length-1]=='s'||moduleName[moduleName.Length-1]=='S')
				moduleName = moduleName.Remove(moduleName.Length-1);
			return moduleName;
		}
	}
	catch(Exception ex)
	{
		Response.WriteLine(ex.ToString());
		return string.Empty;
	}
}
public string getModuleName(string ProjectName)
{
	try
	{
		if(ProjectName=="")
		{
			return string.Empty;
		}
		else
		{
			char[] splitter  = {'.'};
			string project = ProjectName;
			string [] arrayPath = project.Split(splitter);
			string moduleName = arrayPath[arrayPath.Length - 1];
			if(moduleName[moduleName.Length-1]=='s'||moduleName[moduleName.Length-1]=='S')
				moduleName = moduleName.Remove(moduleName.Length-1);
			return moduleName;
		}
	}
	catch(Exception ex)
	{
		Response.WriteLine(ex.ToString());
		return string.Empty;
	}
}
</script>